package com.ql.pojo.sheBeiGuanLi;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Buy {//购买表
  private int bId;//购买申请表
  private String bCode;//购买设备编号
  private String bType;//购买设备型号
  private String cpType;//产品类型(类型表获取)
  private String cpUse;//产品用途
  private String keshi;//使用科室(科室表获取)
  private int buyNumber;//购买数量

  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date sqTime;//申请日期
  private String sqPerson;//申请人(医生表获取)
  private String spPerson;//审批人

  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date spTime;//审批日期
  private String spZt;//审批状态(0:未通过 1:通过)
  private double price;//设备单价
  private double totalPrice;//设备总金额

  //add for kName 1 3
  private String kName;//科室名称
  //add for kName 1 4
  private String docName;//医生名称

  public String getDocName() {
    return docName;
  }

  public void setDocName(String docName) {
    this.docName = docName;
  }

  public String getkName() {
    return kName;
  }

  public void setkName(String kName) {
    this.kName = kName;
  }

  public Buy() {
  }

  public Buy(int bId, String bCode, String bType, String cpType, String cpUse, String keshi, int buyNumber, Date sqTime, String sqPerson) {
    this.bId = bId;
    this.bCode = bCode;
    this.bType = bType;
    this.cpType = cpType;
    this.cpUse = cpUse;
    this.keshi = keshi;
    this.buyNumber = buyNumber;
    this.sqTime = sqTime;
    this.sqPerson = sqPerson;
  }

  public Buy(int bId, String bCode, String bType, String cpType, String cpUse, String keshi, int buyNumber, Date sqTime, String sqPerson, String spPerson, Date spTime, String spZt, double price, double totalPrice) {
    this.bId = bId;
    this.bCode = bCode;
    this.bType = bType;
    this.cpType = cpType;
    this.cpUse = cpUse;
    this.keshi = keshi;
    this.buyNumber = buyNumber;
    this.sqTime = sqTime;
    this.sqPerson = sqPerson;
    this.spPerson = spPerson;
    this.spTime = spTime;
    this.spZt = spZt;
    this.price = price;
    this.totalPrice = totalPrice;
  }

  public int getbId() {
    return bId;
  }

  public void setbId(int bId) {
    this.bId = bId;
  }

  public String getbCode() {
    return bCode;
  }

  public void setbCode(String bCode) {
    this.bCode = bCode;
  }

  public String getbType() {
    return bType;
  }

  public void setbType(String bType) {
    this.bType = bType;
  }

  public String getCpType() {
    return cpType;
  }

  public void setCpType(String cpType) {
    this.cpType = cpType;
  }

  public String getCpUse() {
    return cpUse;
  }

  public void setCpUse(String cpUse) {
    this.cpUse = cpUse;
  }

  public String getKeshi() {
    return keshi;
  }

  public void setKeshi(String keshi) {
    this.keshi = keshi;
  }

  public int getBuyNumber() {
    return buyNumber;
  }

  public void setBuyNumber(int buyNumber) {
    this.buyNumber = buyNumber;
  }

  public Date getSqTime() {
    return sqTime;
  }

  public void setSqTime(Date sqTime) {
    this.sqTime = sqTime;
  }

  public String getSqPerson() {
    return sqPerson;
  }

  public void setSqPerson(String sqPerson) {
    this.sqPerson = sqPerson;
  }

  public String getSpPerson() {
    return spPerson;
  }

  public void setSpPerson(String spPerson) {
    this.spPerson = spPerson;
  }

  public Date getSpTime() {
    return spTime;
  }

  public void setSpTime(Date spTime) {
    this.spTime = spTime;
  }

  public String getSpZt() {
    return spZt;
  }

  public void setSpZt(String spZt) {
    this.spZt = spZt;
  }

  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public double getTotalPrice() {
    return totalPrice;
  }

  public void setTotalPrice(double totalPrice) {
    this.totalPrice = totalPrice;
  }

  @Override
  public String toString() {
    return "Buy{" +
            "bId=" + bId +
            ", bCode='" + bCode + '\'' +
            ", bType='" + bType + '\'' +
            ", cpType='" + cpType + '\'' +
            ", cpUse='" + cpUse + '\'' +
            ", keshi='" + keshi + '\'' +
            ", buyNumber=" + buyNumber +
            ", sqTime=" + sqTime +
            ", sqPerson='" + sqPerson + '\'' +
            ", spPerson='" + spPerson + '\'' +
            ", spTime=" + spTime +
            ", spZt='" + spZt + '\'' +
            ", price=" + price +
            ", totalPrice=" + totalPrice +
            '}';
  }
}
